package com.uzai.console.vo.ks.ksorder;

import com.uzai.console.constant.Const;
import com.uzai.console.entity.es.RewardVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Auther: liuqi
 * @Date: 2021/8/10 14:58
 * @Description:
 */
@Data
@ApiModel("返回快手订单信息列表")
public class KsOrderInfoVo {
    @ApiModelProperty("订单ID")
    private Long id;
    @ApiModelProperty("子订单号")
    private String childOrderNo;
    @ApiModelProperty("父订单号")
    private String parentOrderNo;
    @ApiModelProperty("商品信息")
    private String title;
    @ApiModelProperty("商品单价")
    private Double price;
    @ApiModelProperty("图片链接")
    private String imageUrl;
    @ApiModelProperty("店铺id")
    private String shopId;
    @ApiModelProperty("店铺名称")
    private String shopTitle;
    @ApiModelProperty("商品数量")
    private Integer num;
    @ApiModelProperty("付款金额")
    private Double payment;
    @ApiModelProperty("总佣金")
    private Double commission;
    @ApiModelProperty("总佣金比例")
    private Double commissionRate;
    @ApiModelProperty("技术服务费")
    private Double serviceFee;
    @ApiModelProperty("创建时间")
    private Integer createdt;
    @ApiModelProperty("付款时间")
    private Integer paydt;
    @ApiModelProperty("结算时间")
    private Integer accountdt;
    @ApiModelProperty("解冻时间")
    private Integer unfreezeTime;
    @ApiModelProperty("追回时间")
    private Integer refundFinishTime;
    @ApiModelProperty("推广位")
    private String pid;
    @ApiModelProperty("订单状态(0订单付款 1订单结算 2订单失效 3维权中 4维权成功 5维权失败 6订单成功 7失效拆单)")
    private Integer status;
    @ApiModelProperty("返利状态（0未返利 1已返利 2回收返利 3返利冻结）")
    private Integer reStatus;
    @ApiModelProperty("会员ID")
    private Long userId;
    @ApiModelProperty("微信昵称")
    private String nickName;
    @ApiModelProperty("买家金额")
    private Double reUserBal;
    @ApiModelProperty("买家积分")
    private Integer reUserInte;
    @ApiModelProperty("上级金额")
    private Double reParentBal;
    @ApiModelProperty("上上级金额")
    private Double reSlParentBal;
    @ApiModelProperty("代理金额")
    private Double reAgentBal;
    @ApiModelProperty("上级代理金额")
    private Double reSlAgentBal;
    @ApiModelProperty("合伙人金额")
    private Double rePartnerBal;
    @ApiModelProperty("技术费金额")
    private Double platformServiceFee;
    @ApiModelProperty("利润")
    private Double profit;
    @ApiModelProperty("机器人唯一ID")
    private Long deviceUniqueId;
    @ApiModelProperty("机器人wxid")
    private String deviceId;
    @ApiModelProperty("机器人昵称")
    private String deviceName;
    @ApiModelProperty("机器人备注信息")
    private String deviceRemark;
    @ApiModelProperty("设备类型（如微信、公众号）")
    private String deviceType;
    @ApiModelProperty("会员类型")
    private Integer userType;
    @ApiModelProperty("会员类型名称")
    private String userTypeName;
    @ApiModelProperty("身份")
    private Integer identity;
    @ApiModelProperty("身份名称")
    private String identityName;
    @ApiModelProperty("商品ID")
    private String itemId;
    @ApiModelProperty("是否免单(0非免单，1免单)")
    private Integer free;
    @ApiModelProperty("订单来源（0 PC个人微信，1 安卓手机个人微信,2 PC企业微信,3 Ipad协议个人微信,4 CMS, 5 小程序, 6 公众号）")
    private String orderSource;
    @ApiModelProperty("是否是新用户订单（杀熟）：0否，1是")
    private Integer newUserOrder;
    @ApiModelProperty("维权应返商家金额")
    private Double refundOpeAmount;
    @ApiModelProperty("订单返回分佣详情对象")
    private RewardVo rewardVo;
    @ApiModelProperty("商品链接")
    private String link;
    @ApiModelProperty("订单其他备注")
    private String remark;
    @ApiModelProperty("修改时间")
    private Integer updateTime;

    public String getLink() {
        return String.format(Const.ItemUrl.KS, itemId);
    }

    public void setLink(String link) {
        this.link = link;
    }



}
